<template>
  <view class="bottom-button">
    <view class="back-btn" @click="goBack">
      <image class="back-icon" src="./img/left-arrow.png"></image>
      返回
    </view>
  </view>
</template>

<script>
export default {
  name:"backbtn",
  data() {
    return {
    };
  },
  methods: {
    goBack() {
      uni.navigateBack({
        delta: 1
      })
    },
  },
}
</script>

<style lang="less">
.bottom-button {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  background-color: #fff;
  height: calc(144rpx + env(safe-area-inset-bottom));
  padding: 26rpx 32rpx;
}
.back-btn {
  width: 686rpx;
  height: 92rpx;
  background: #FFFFFF;
  border-radius: 12rpx;
  border: 2rpx solid #E6EBF1;
  text-align: center;
  font-family: PingFangSC, PingFang SC;
  font-weight: 400;
  font-size: 34rpx;
  color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 88rpx;
  .back-icon {
    margin-right: 8rpx;
    width: 40rpx;
    height: 40rpx;
  }
}
</style>